<?php
namespace Admin\Controller;
use Admin\Model\UserLogModel;

class CateController extends MainController{
    /**
     * 获取分类列表
     * @queyuan
     * 2016/05/30
     * @param $id
     */
    public function getCates(){
        $id = I("param.id",0,'int');
        $list = M("category")->where("pid = ".$id)->field("id,name")->select();
        $result = array('status'=>0,'msg'=>"请求成功",'list'=>$list);
        echo json_encode($result);
        exit;
    }
}
?>